<template>
	<div id="sidebar">
		<el-button type="primary" @click.native="Judge_Login">发布文章</el-button>
		<div class="etc">
				<div class="row11">
					<span>jesus基督教交流社区</span>
				</div>
				<div class="row11">
					<span>联系方式:17753542950</span>
				</div>
		</div>
	</div>
</template>

<script>
	export default{
		name:"SiderBar"
		,
		props:{
			req:[]
		},
		methods:{
			Judge_Login(){
				this.common.comfrompublish = true
				if(this.common.isLogin !== true)
					 return this.$router.push('/login')
				this.$router.push('/publish')
			}
		}
	}
</script>

<style scoped="scoped">
	#sidebar{
		box-sizing: border-box;
		float: right;
		width: 250px;
		height: 200px;
		background-color: #fff;
		padding: 10px;
	}
	.etc{
		border-top: 1px solid #F0F0F0;
		margin-top: 10px;
	}
	.row11{
		padding: 10px 30px;
	}
</style>
